<%@ page pageEncoding="UTF-8"%>
<%@ include file="/common/validate.jsp"%>
<%@ include file="function.jsp"%>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>医院信息</title>
    <link rel="stylesheet" href="/css/public.css?cache=<%=Math.random()%>">
    <link  href="../../hos_manage/images/favicon.ico?cache=<%=Math.random()%>" rel="shortcut icon" type="image/x-icon">
    <link rel="stylesheet" type="text/css" href="../../css/palace/hospital/hos_info_show.css?a=<%=Math.random()%>">
    <script src="/js/jquery-1.9.1.min.js"></script>
    <script>
        var _data = "";
        $.ajax({
            type: "post",
            url: location.href,
            data: {
                act: "showHospital",
                hospital: "${user.hospital}",
            },
            async: false,
            success: function (res) {
                res = JSON.parse(res);
                console.log(res);
                if (res.errcode == 0) {
                    _data = res.data;
                } else {
                    location.href = "hos_info_init.jsp";
                }
            }
        });
    </script>
</head>
<body id="app">
<%@ include file="../../header.jsp"%>
<!--内容-->
<div class="containerone">
    <%@ include file="../../left_menu.jsp"%>
    <!--右边内容-->
    <div class="right_cont">
        <!--右边导航下面内容-->
        <div class="tag-manage">
            <div class="title">
                <div class="address-left show-block note">
                    <span class="hover" onclick="location.href = '../../index.jsp'">首页</span>
                    <span class="left-distance">></span>
                    <span class="left-distance">医院信息</span>
                </div>
            </div>
            <div class="container">
                <div class="position">
                    <div class="show-block address-book-right">
                        <div class="data-form show-margin-left">
                            <div class="hos-img">
                                <div class="show-block hos"></div>
                                <img class="show-block edit-img" src="../../images/palace/tag/edit.png" onclick="location.href = 'hos_info_edit.jsp'">
                            </div>
                            <div class="font-16 hos-address">
                                <div class="show-block">医院地址:</div>
                                <div class="show-block address"></div>
                            </div>
                            <div class="font-16 hos-phone">
                                <div class="show-block">医院电话:</div>
                                <div class="show-block phone"></div>
                            </div>
                            <div class="font-16 hos-intro">
                                <span>医院简介:</span>
                                <span class="intro"></span>
                            </div>
                        </div>
                    </div>
                </div>
            </div>
        </div>
    </div>
</div>
</body>
    <script>
        $(".hos").text(_data.name);
        $(".address").text(JSON.parse(_data.address).province + "" + JSON.parse(_data.address).city + JSON.parse(_data.address).district + JSON.parse(_data.address).address_detail);
        $(".phone").text(_data.phone);
        $(".intro").text(_data.introduction);
    </script>
</html>